include ../../makeEnviroment.conf
SRCS = $(wildcard *.c)
SRCS += $(wildcard $(SRC_BASE_MODULE_PATH)*.c)
SRCS += $(wildcard $(SRC_LX_MODULE_PATH)*.c)

CFLAGS += -I$(SRC_BASE_MODULE_PATH) -I$(SRC_LX_MODULE_PATH)

TARGET = test

$(info srcs: $(SRCS))
OBJS = $(patsubst %.c,%.o,$(SRCS))
$(info objs: $(OBJS))

all:$(OBJS)
	$(GCC) -o $(TARGET) $(OBJS) $(CFLAGS) -pthread -O3

$(OBJS):%.o:%.c
	$(GCC) -c $^ -o $@ $(CFLAGS)

clean:
	rm -f *.o $(TARGET) $(OBJS)
